package com.androidlibrary.myapplication

import android.os.Bundle
import com.alibaba.android.arouter.launcher.ARouter
import com.androidlibrary.myapplication.andfix.KotlinBug
import com.wcy.app.lib.web.utils.WebViewLoad
import kotlinx.android.synthetic.main.activity_kotlin.*
import org.wcy.android.ui.BaseActivity

class KotlinActivity : BaseActivity() {

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_kotlin)

        btn_sumbit.setOnClickListener {
            KotlinBug.show(this)
        }
        tvAgreeMent?.setOnClickListener {
            ARouter.getInstance().build("/webview/web_activity").withString("url", "http://appadviser.hejuzg.cn/module/houseResource/build/index.html?buildingProjectId=53450117&roleType=1&agentGroupId=1111274&agentOperatorId=30087").navigation()
            // WebViewLoad.load("https://image.baidu.com/")
           // WebViewLoad.load("http://appadviser.hejuzg.cn/module/portrait/index.html?openId=oErwPxBVoMIQboixX9Z9qAhZGJz8&myBuildingProjectId=53450117\n")
        }
        tv_html2?.setOnClickListener {
            WebViewLoad.load("file:///android_asset/hello.html","测试测试测试")
        }
        tv_about_us?.setOnClickListener {
            ARouter.getInstance().build("/app/two_activity").navigation()
            //WebViewLoad.load("file:///android_asset/jsuploadfile.html")
        }
        tv_company?.setOnClickListener {
            WebViewLoad.load("http://prwap.hejuzg.cn/ww/wap/h5/auth?h5ModuleNo=%7b%22moduleNo%22%3a1%7d&terminalId=33&token=5199ee76ef040aa3a434e215ab2febe8#/")
        }
        tv_bottom?.setOnClickListener {
            WebViewLoad.load("https://pic.sogou.com/?p=40030500&w=")
        }
        tvfile?.setOnClickListener {
            WebViewLoad.load("http://appadviser.hejuzg.cn/broker/uploadAttachment/index.html?token=a1b69334150ba030093c84f7bd0a666e&orderCustomRecordId=4000327")
        }
    }
}
